<%@ page import="chapter11.Role" %><%--
  Created by IntelliJ IDEA.
  User: lzy
  Date: 18-4-19
  Time: 下午4:42
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html" charset="UTF-8"/>
    <title>Paramter</title>
</head>
<body>
<%
    Role role = (Role) session.getAttribute("role");
    out.println("id = " + role.getRoleId() + "</p>");
    out.println("name = " + role.getRoleName() + "</p>");
    Long id = (Long) session.getAttribute("id");
    out.println("id=" + id + "</p>");
%>
</body>
</html>

